Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.base--widgets
In component org.nuxeo.ecm.platform.forms.layouts.webapp.base
org.nuxeo.ecm.platform.forms.layouts.webapp.base
inside nuxeo-platform-webapp-base-8.10.jar /OSGI-INF/layouts-contrib.xml
This contribution is part of XML component Extension Point
Extension point widgets of component WebLayoutManager.Contributed Items
XML Source
<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">
<widget name="document_edit_comment" type="textarea">
<labels>
<label mode="any">label.editComment</label>
</labels>
<helpLabels>
<label mode="any">label.editComment.tooltip</label>
</helpLabels>
<translated>true</translated>
<fields>
<field>contextData['request/comment']</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
</widgetModes>
</widget>
<widget name="document_edit_current_version" type="text">
<labels>
<label mode="any">label.version</label>
</labels>
<helpLabels>
<label mode="any">label.versioning.currentVersion.tooltip</label>
</helpLabels>
<translated>true</translated>
<fields>
<field>#{versioningManager.getVersionLabel(layoutValue)}</field>
</fields>
<widgetModes>
<mode value="create">hidden</mode>
<mode value="any">
#{nxu:test(layoutValue.versionable and
!layoutValue.folder, 'view', 'hidden')}
</mode>
</widgetModes>
</widget>
<widget name="document_edit_versioning_options" type="setVariable">
<labels>
<label mode="any">label.versioning.selectVersioningOption</label>
</labels>
<helpLabels>
<label mode="any">label.versioning.changeVersion.tooltip</label>
</helpLabels>
<translated>true</translated>
<widgetModes>
<mode value="create">hidden</mode>
<mode value="any">
#{nxu:test(layoutValue.versionable and not
layoutValue.folder and
versioningManager.getVersionIncEditOptions(layoutValue).hasOptions(),
mode, 'hidden')}
</mode>
</widgetModes>
<properties widgetMode="any">
<property name="var">incOptions</property>
<property name="value">
#{versioningManager.getVersionIncEditOptions(layoutValue)}
</property>
<property name="cache">true</property>
</properties>
<subWidgets>
<widget name="versioning_options" type="selectOneRadio">
<fields>
<field>contextData['default/VersioningOption']</field>
</fields>
<properties widgetMode="edit">
<property name="defaultValue">
#{incOptions.defaultVersioningAction.name()}
</property>
<property name="converter">documentVersioningConverter</property>
<property name="layout">pageDirection</property>
<property name="required">true</property>
<property name="requiredMessage">
#{messages['error.versioning.none_selected']}
</property>
</properties>
<selectOptions>
<options itemLabel="#{messages[item.getValue()]}" itemValue="#{item.getKey()}" value="#{incOptions.optionsForDisplay}" var="item"/>
</selectOptions>
</widget>
</subWidgets>
</widget>
<widget name="userPanelTop" type="documentActions">
<properties widgetMode="view">
<property name="category">USER_PANEL_TOP</property>
</properties>
<controls mode="any">
<control name="gridStyleClass">gridStyle12</control>
</controls>
</widget>
<widget name="userPanelLeft" type="documentActions">
<properties widgetMode="view">
<property name="category">USER_PANEL_LEFT</property>
</properties>
<controls mode="any">
<control name="gridStyleClass">gridStyle5</control>
</controls>
</widget>
<widget name="userPanelRight" type="documentActions">
<properties widgetMode="view">
<property name="category">USER_PANEL_RIGHT</property>
</properties>
<controls mode="any">
<control name="gridStyleClass">gridStyle7</control>
</controls>
</widget>
<widget name="userPanelBottom" type="documentActions">
<properties widgetMode="view">
<property name="category">USER_PANEL_BOTTOM</property>
</properties>
<controls mode="any">
<control name="gridStyleClass">gridStyle12</control>
</controls>
</widget>
<widget name="userLayout" type="layout">
<properties widgetMode="any">
<property name="name">user</property>
</properties>
</widget>
<widget name="userAdditionalWidgets" type="documentActions">
<properties widgetMode="any">
<property name="category">USER_ADDITIONAL_WIDGETS</property>
<property name="widgetMode">#{layout.mode}</property>
</properties>
<controls mode="any">
<control name="handleLabels">true</control>
</controls>
</widget>
</extension>